//
//  WWNotificationCenter.h
//  ObjectCProject
//
//  Created by lvfeijun on 2022/12/8.
//

#import <Foundation/Foundation.h>
#import "WWNotification.h"

NS_ASSUME_NONNULL_BEGIN

@interface WWNotificationCenter : NSObject

+(WWNotificationCenter*)defaultCenter;

-(void)addObserver:(id)observer selector:(SEL)aSelector name:(nullable NSString*)aName object:(nullable id)anObject;
-(id )addObserverForName:(nullable NSString *)name object:(nullable id)obj queue:(nullable NSOperationQueue *)queue usingBlock:(void(^)(WWNotification *note))block;

-(void)postNotification:(WWNotification *)notification;
-(void)postNotificationName:(NSString *)aName object:(id)object userInfo:(NSDictionary *)userInfo;
-(void)postNotificationName:(NSString *)aName object:(id)object;

-(void)removeObserver:(id)observer;


@end

NS_ASSUME_NONNULL_END
